* {
  margin: 0;
  padding: 0;
}
html,
body,
#root,
#app{
  height: 100%;
}

::-webkit-scrollbar {
  width: 0;
}
// loding动画
.adm-error-block{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .adm-error-block-image{
    height: 250px;
  }
}
//-------- index/ ------------
.index {
  height: calc( 100% - 60px);
  overflow-y: scroll;

  //-----index/tabbar --------
  .tabbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 12px 24px 5px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: white;

    a {
      display: block;
      text-align: center;
      font-size: 14px;
      color: #000;
      text-decoration: none;

      .iconfont {
        font-size: 24px;
      }
    }

    .active {
      color: red;
    }
  }

  //----- index/home ---------
  .home {
    // 输入框
    header {
      background-color: #cf151a;

      .logo {
        height: 64px;
        background: url(./assets//images/home_0.jpg) no-repeat;
      }

      .input-box {
        padding: 12px;
        padding-right: 0;
        display: flex;
        align-items: center;


        input {
          flex: 1;
          height: 36px;
          border-radius: 6px;
          background-color: white;
          border: none;
          outline: none;
          padding-left: 20px;
        }

        div {
          display: flex;
          flex-direction: column;
          width: 70px;
          color: #fae7e8;
          text-align: center;

          span {
            font-size: 14px;
          }

          .iconfont {
            font-size: 20px;
          }
        }
      }
    }

    // 轮播图
    .swiper {
      height: 200px;
      background-color: lightcoral;

      .adm-swiper-item {
        height: 200px;

        img {
          height: 100%;
          width: 100%;
        }
      }
    }

    // 分类菜单
    .catelist {
      display: flex;
      flex-wrap: wrap;
      margin: 10px 0;

      .cates {
        width: 20%;
        margin-bottom: 10px;
        text-align: center;
        font-size: 14px;

        img {
          width: 60%;
          border-radius: 50%;
          margin-bottom: 4px;
        }
      }
    }

    // 广告图
    .guanggao {
      height: 80px;
      width: 100%;
      background-color: #f7f6f6;
      background: url(./assets/images/home_1.jpg) no-repeat;
    }

    // 商品列表
    .homelist {
      .today {
        height: 49px;
        margin-top: 8px;
        background: url(./assets//images/home_2.jpg) no-repeat;

      }

      .goodslist {
        padding: 0 18px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        .list {
          width: 100px;
          margin-top: 18px;

          img {
            text-align: center;
            width: 100%;
          }

          .name {
            font-size: 16px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-bottom: 8px;
          }

          .price {
            color: #f4424e;
            padding: 4px;
            background-color: #feeaec;
            font-size: 12px;
          }

          .buyprice {
            color: #f4424e;
            font-size: 12px;
            margin-top: 4px;

            span {
              display: inline-block;
              font-size: 16px;
              font-weight: 600;
            }
          }
        }
      }
    }
  }

  //------ index/cate --------
  .cate {
    height: 100%;
    display: flex;
    flex-direction: column;

    .header {
      height: 100px;
      padding: 0 12px;

      .title {
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 18px;
        color: #151515;
        font-weight: 600;
      }

      .input-box {
        height: 38px;
        padding: 6px 0;

        input {
          width: 100%;
          height: 100%;
          padding-left: 24px;
          border-radius: 6px;
          box-sizing: border-box;
          outline: none;
          border: none;
          background-color: #f8f8f8;
        }
      }
    }

    .tabs {
      flex: 1;
      overflow-y: scroll;
      display: flex;

      .tableft {
        height: 100%;
        overflow-y: scroll;

        .btn {
          width: 88px;
          height: 58px;
          background-color: #f8f8f8;
          display: flex;
          align-items: center;

          .text {
            width: 100%;
            height: 24px;
            line-height: 24px;
            text-align: center;
            box-sizing: border-box;
            color: #848484;
            font-size: 14px;
            border-left: 4px solid transparent;
          }
        }

        .active {
          background-color: #fff;

          .text {
            color: #f01f32;
            border-left: 4px solid #f01f32;
          }
        }
      }

      .tabright {
        height: 100%;
        flex: 1;
        overflow-y: scroll;
        .adm-swiper {
          width: calc(100% - 24px);
          margin: 0 12px;
          border-radius: 12px;
          img{
            width: 100%;
            
          }
        }

        .catelist {
          .name {
            height: 58px;
            line-height: 58px;
            padding-left: 18px;
            font-weight: 700;
          }

          .good {
            display: flex;
            flex-wrap: wrap;
            padding-left: 12px;

            .subname {
              width: calc(100% / 3);
              height: 100px;
              display: flex;
              justify-content: center;

              .content {
                .img-box {
                  width: 60px;
                  height: 60px;
                }

                .ygc_name {
                  color: #565656;
                  text-align: center;
                }
              }

            }

          }

        }

      }
    }

  }

  //------ index/goods --------
  .goods {
    height: 100%;
    display: flex;
    flex-direction: column;

    .header {
      height: 100px;
      padding: 0 12px;
      background-color: #fefffe;

      .title {
        height: 50px;
        line-height: 50px;
        text-align: center;
        font-size: 18px;
        color: #151515;
        font-weight: 600;
      }

      .input-box {
        height: 38px;
        padding: 6px 0;

        input {
          width: 100%;
          height: 100%;
          padding-left: 24px;
          border-radius: 6px;
          box-sizing: border-box;
          outline: none;
          border: none;
          background-color: #f7f8fb;
        }
      }
    }

    .adm-tabs {
      flex: 1;
      overflow-y: scroll;
      background-color: #f8f8f8;

      .adm-tabs-header {
        background-color: #fff;
      }

      .goodslist {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .goods {
          width: 172px;
          height: 276px;
          padding: 12px;
          box-sizing: border-box;
          background-color: #fff;
          margin-bottom: 12px;

          .img-box {
            width: 148px;
            height: 148px;

            img {
              width: 100%;
            }
          }

          .name {
            font-size: 14px;
            height: 40px;
          }

          .sales {
            display: inline;
            width: 40px;
            background-color: #fde9eb;
            padding: 4px;
            margin: 8px 0;
          }

          .price {
            color: #e70000;

            span {
              font-size: 20px;
            }
          }

        }
      }
    }
  }

  //---- index/shopcart ------
  .shopcart {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;

    .shopcartheader {
      .title {
        height: 50px;
        text-align: center;
        line-height: 50px;
        font-size: 20px;
        font-weight: 700;
      }

      .header {
        height: 50px;
        padding: 0 12px;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .left {
          display: flex;
          align-items: center;

          img {
            width: 36px;
            height: 36px;
            margin-right: 12px;
            border-radius: 50%;
          }
        }
      }

      .choose {
        height: 44px;
        margin: 12px;
        padding: 0 12px;
        border: 1px solid #ccc;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .orange {
          color: #fc6900;
          font-weight: 600;
        }

        .black {
          font-weight: 600;
          color: black;

          span {
            padding: 2px;
            background-color: #fc6900;
            color: #fff;
            font-size: 12px;
          }
        }
      }
    }
    .cartlist {
      flex: 1;
      overflow-y: scroll;
      display: flex;
      flex-direction: column;
      padding: 0 12px;
      margin-bottom: 50px;
      .shopping {
        display: flex;
        padding: 12px 0;
        border-bottom: 1px solid #ccc;

        .adm-checkbox {
          height: 90px;

          .adm-checkbox-checked .adm-checkbox-icon {
            background-color: #f2323f;
          }

          .adm-checkbox-content {
            padding: 0;
            margin-left: 12px;
          }

        }

        .content {
          margin-left: 12px;
          flex: 1;
          display: flex;

          .left {
            width: 90px;
            height: 90px;
            background-color: #cf151a;
            margin-right: 12px;

            img {
              width: 100%;
            }
          }

          .right {
            flex: 1;

            .name {
              height: 40px;
              font-size: 14px;
              font-weight: 600;
              line-height: 20px;
              margin-bottom: 12px;
            }

            .sales {
              padding: 2px;
              color: #f56871;
              border: 1px solid #f56871;
            }

            .tags {
              height: 30px;
              line-height: 30px;

              span {
                color: #fb0f00;
                background-color: #ffede9;
                margin-right: 12px;
              }
            }

            .caozuo {
              display: flex;
              justify-content: space-between;
              align-items: center;

              .price {
                font-size: 18px;
                color: #e90000;

                span {
                  font-size: 14px;
                }
              }

              .opr {
                height: 20px;
                width: 70px;
                border: 1px solid #f4f4f4;
                display: flex;
                font-size: 14px;
                font-weight: 700;
                align-items: center;

                span {
                  width: calc(100% / 3);
                  height: 20px;
                  background-color: #f8f8f8;
                  text-align: center;
                  line-height: 20px;
                  font-size: 20px;
                }

                div {
                  width: calc(100% / 3);
                  line-height: 20px;
                  text-align: center;
                }
              }
            }
          }
        }

      }
      .bottom {
        width: calc(100% - 24px);
        height: 50px;
        background-color: #fff;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        bottom: 0;
        .right {
          float: right;
          display: flex;
          align-items: center;

          .price {
            font-size: 14px;
            color: #ed0020;
            margin-right: 12px;

            span {
              font-size: 18px;
              font-weight: 700;
            }
          }

          .pay {
            width: 100px;
            height: 36px;
            background-color: #f23340;
            text-align: center;
            line-height: 36px;
            color: #fff;
            font-size: 14px;
            border-radius: 18px;
          }

        }
      }


    }

  }

  //------ index/mine --------
  .mine {
    height: 100%;
    background-color: rgb(240, 236, 236);

    .mine-hea {
      height: 144px;
      background: url(./assets//images/mine.jpg);
      overflow: hidden;

      .touxiang {
        height: 50px;
        margin-top: 78px;
        margin-left: 12px;
        display: flex;
        align-items: center;

        img {
          width: 50px;
          height: 50px;
          border-radius: 50%;
          background-color: #cf151a;
          margin-right: 12px;
        }

        span {
          color: white;
          font-size: 18px;
        }
      }
    }

    .mine-shou {
      height: 70px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      margin: 10px;
      background-color: white;

      .shou-child {
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;

        span {
          color: black;
          font-size: 14px;
          font-weight: 500;
        }
      }
    }

    .mine-ord {
      height: 120px;
      padding: 10px;
      box-sizing: border-box;
      background-color: white;
      margin: 10px;

      .ord-hea {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 5px 10px;

        .ord {
          color: black;
          font-size: 18px;
          font-weight: 700;
        }

        .find {
          color: rgb(187, 186, 186);
          font-size: 16px;
        }
      }

      .ord-fu {
        height: 90px;
        display: flex;
        justify-content: space-around;
        align-items: center;

        .fu {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;

          .iconfont {
            font-size: 24px;
            color: black;
            margin-bottom: 5px;
          }

          .dai {
            color: black;
            font-size: 14px;
          }
        }
      }
    }

    .mine-hui {
      height: 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 10px;
      padding: 12px;
      box-sizing: border-box;
      background-color: white;
    }

    .hui {
      color: black;
      font-size: 16px;
    }

    .mine-quan {
      background-color: white;
      margin: 10px;

      .quan {
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 13px;
        box-sizing: border-box;
        border: 1px solid rgb(226, 225, 225);
      }
    }
  }
}

//-------- login/register ----
.login_register {
  height: 100%;
  display: flex;
  justify-content: center;
  background: url(./assets//images/login-bg.jpg) no-repeat;
  background-size: 100%;

  .content-box {
    width: 280px;
    margin-top: 260px;

    .input-box {
      width: 100%;
      margin-bottom: 16px;

      input {
        width: 100%;
        height: 38px;
        border-radius: 19px;
        padding-left: 16px;
        box-sizing: border-box;
        outline: none;
        border: none;
      }
    }

    .span-box {
      width: 100%;
      height: 38px;
      border-radius: 19px;
      line-height: 38px;
      text-align: center;

      span {
        font-size: 18px;
        color: #fff;
      }
    }

    .button_1 {
      margin-top: 36px;
      margin-bottom: 12px;
      background-color: #ff4189;
    }

    .button_2 {
      span {
        border-bottom: 1px solid #fff;
      }
    }
  }

}

//----------- detail ---------
.detail {
  height: 100%;

  .header {
    height: 70px;
    padding: 0 8px;
    display: flex;
    align-items: center;

    .icon {
      width: 80px;
      height: 30px;
      border: 1px solid #f2f2f2;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;

      .iconfont {
        font-size: 18px;
        color: #1c1c1c;
        font-weight: 700;
      }

      .line-y {
        padding: 0 10px;
        color: #ececec;
      }
    }

    .title {
      width: 190px;
      text-align: center;
      font-weight: 700;
      font-size: 20px;
    }
  }

  .swiper {
    height: 375px;
    background-color: #dcdcdc;

    img {
      width: 100%;
    }

    .customIndicator {
      position: absolute;
      width: 36px;
      height: 22px;
      text-align: center;
      line-height: 22px;
      bottom: 12px;
      right: 6px;
      background: rgba(0, 0, 0, 0.3);
      color: #ffffff;
      border-radius: 11px;
      user-select: none;
    }

  }

  .operate {
    padding: 0 16px;

    .line_1 {
      height: 50px;
      background-color: #fef3f4;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #e90000;
      font-size: 14px;

      span {
        font-size: 20px;
      }
    }

    .tags {
      height: 50px;
      display: flex;
      align-items: center;

      span {
        font-size: 12px;
        padding: 4px;
        color: #eb000f;
        margin-right: 6px;
        border: 1px solid #fab5ba;
      }
    }

    .goodname {
      height: 70px;
      color: #070a0d;
      line-height: 30px;
      font-size: 20px;
      font-weight: 600;
    }

    .opers {
      width: calc(100% - 32px);
      height: 60px;
      border-top: 2px solid #f5f5f6;
      position: fixed;
      bottom: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .oper {
        height: 38px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;

        .iconfont {
          font-size: 20px;
          &.active{
             color: #ff7300f2;
          }
        }



        span {
          font-size: 12px;
        }
      }

      .cart {
        display: flex;
        align-items: center;

        div {
          width: 100px;
          height: 38px;
          color: #fff;
          font-size: 16px;
          text-align: center;
          line-height: 38px;
        }

        .shopcart {
          background-color: #fe7e10;
          border-radius: 19px 0 0 19px;
        }

        .pay {
          background-color: #f23340;
          border-radius: 0 19px 19px 0;
        }
      }

    }
  }

}

//------------搜索页----------
.search {
  .top {
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
    font-size: 20px;
    font-weight: 700;
    position: relative;
  }

  .top span:first-child {
    color: #000;
  }

  .top span:nth-child(2) {
    position: absolute;
    left: 40%;

  }

  .form {
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* box-sizing: border-box; */
  }

  .form .input {
    width: 280px;
    height: 20px;
    padding: 10px;
    background-color: #f1f1f2;
    border-radius: 20px;
  }

  /* 搜索框 */
  .form .input input {
    border: none;
    outline: none;
    background-color: #f1f1f2;
    padding-left: 12px;
  }

  /* 右侧搜索 */
  .form span {
    color: #ccc;
    font-size: 16px;
  }

  /* 历史搜索 */
  .history .tittle {
    margin: 15px;
    display: flex;
    justify-content: space-between;
  }

  /* 历史搜索加粗 */
  .history .tittle span:first-child {
    font-weight: 700;
  }

  /* 历史搜索 */
  ul {
    display: flex;
    margin: 15px;
    flex-wrap: wrap;
  }

  ul li {
    list-style: none;
    border-radius: 10px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #f3f3f3;
    margin: 0px 5px 5px 0px;
    font-size: 14px;
    padding: 5px 30px;
    border-radius: 20px;
  }

  /* 搜索发现 */
  .find p {
    font-weight: 700;
    margin: 15px;
  }

  .shop {
    margin: 15px;
    background-color: white;
  }

  .shop h3 span {
    color: #02b6fc;
  }

  .shop .list {
    display: flex;
    font-size: 10px;
    padding: 15px;
    margin: 5px 0px;
    background-color: #eee;
    border-radius: 5px;
  }
}

//------------收藏页----------
.collect {
  background-color: #f7f8f7;

  .top {
    padding: 15px;
    font-size: 20px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;

    .iconfont {
      color: #000;
      font-size: 20px;
      font-weight: 700;
    }

    span:nth-child(2) {
      position: absolute;
      left: 40%;
      font-weight: 700;
    }
  }


  ul {
    li {
      width: calc(100% - 16px);
      height: 120px;
      background-color: #fff;
      display: flex;
      padding: 5px;
      box-sizing: border-box;
      margin: 8px;

      img {
        width: 30%;
      }

      .right {
        flex: 1;

        .name {
          height: 50px;
          line-height: 25px;
          margin-bottom: 5px;
          font-size: 16px;
        }

        i {
          padding: 2px;
          color: #f23c49;
          background-color: #fde9eb;
          font-size: 12px;
          font-weight: bold;
          font-style: normal;
        }

        .end {
          margin-top: 6px;
          display: flex;
          color: #f23c49;
          font-weight: bold;
          position: relative;

          span {
            font-size: 12px;
          }

          button {
            border: 1px solid gray;
            border-radius: 20px;
            padding: 2px 10px;
            background-color: #fefffe;
            position: absolute;
            right: 0px;
          }
        }
      }
    }
  }

}
//------------NotFound----------
.notfound{
  height: 100%;
  .adm-empty{
    height: 100%;
    box-sizing: border-box;
  }
}